//
//  NoDelayScrollView.m
//  DYLYJ
//
//  Created by JM on 15/11/5.
//  Copyright © 2015年 JM. All rights reserved.
//

#import "NoDelayScrollView.h"

@implementation NoDelayScrollView

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        self.delaysContentTouches = NO;
    } return self;
}

- (BOOL)touchesShouldCancelInContentView:(UIView *)view {
    if ([view isKindOfClass:[UIButton class]]) { return YES; }
    return [super touchesShouldCancelInContentView:view];
}


@end
